cmake_minimum_required (VERSION 3.10)

project(example_sqlite3)

pkg_check_modules(sqlite3 QUIET sqlite3)
if(sqlite3_FOUND)
    message(STATUS "build ${PROJECT_NAME}")
    aux_source_directory(. DIR_SRCS)
    add_executable(${PROJECT_NAME} ${DIR_SRCS})

    target_link_libraries(${PROJECT_NAME} glog::glog)
    target_link_libraries(${PROJECT_NAME} sqlite3)
endif()